package com.qf.interceptor;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inter")
public class TimeController {

    @RequestMapping("/test1")
    public String test1() throws InterruptedException {

//        long start = System.currentTimeMillis();
        Thread.sleep(100);
//        long end = System.currentTimeMillis();
//        System.out.println("time used=" + (end-start));
        return "test1";
    }

    @RequestMapping("/test2")
    public String test2 (){




        return "test2";
    }
}
